import server from '../utils/request'

const getLogin = async (username, password) => {
  const res = await server({
    url: '/api/wx/auth/login',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: { username, password }
  })
  return {
    ...res
  }
}

export default getLogin
